package com.mostka.wsrpc.client;

import com.google.gwt.core.shared.GWT;
import com.mostka.rpc.client.WsRpcClient;
import com.mostka.wsrpc.shared.Messenger;
/**
 * Class for handling messages on client and also for sending messages from server to client
 */
public abstract class TestWsClient extends WsRpcClient<TestWsClient> {

	public abstract void onMessage(int senderId, String message);
    public abstract void onMessengerJoin(Messenger messenger);
    public abstract void messengersRetrieved(Messenger[] messengers);
    public abstract void onMessengerDisconnect(int messengerId);

    public TestWsClient generateSelf() {
		return GWT.create(TestWsClient.class);
	}
}
